<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="app">
    {{message}}
    <a v-bind:href="url">点我去B站</a>

</div>

<div id="root">
    单向数据绑定<input type="text" v-bind:value="message" >
    双向数据绑定<input type="text" v-model:value="message" >
</div>
<!--导入Vue.js-->
<script src="js/vue.js"></script>

<script>
    var vm = new Vue({
        el:"#app",
        data:{
            message: "hello,vue!",
            url:"https://www.bilibili.com/"
        },
        method:{
            showInfo(event){
                alert("被点击")
            }
        }
    });
    var vm1 = new Vue({
        el:"#root",
        data:{
            message: "hello,vue!",

        }
    });
</script>
</body>
</html>